import myAxios from '@/utils/request'

export const getCarouselListApi = (params) =>
  myAxios.get('/carousels/page', { params: params })

export const addCarouselApi = (data) => myAxios.post('/carousels', data)

export const deleteCarouselApi = (ids) =>
  myAxios.delete(`/carousels`, {
    params: {
      ids: ids.join(',')
    }
  })

export const updateCarouselApi = (data) => myAxios.put('/carousels', data)

export const getCarouselByIdApi = (id) => myAxios.get(`/carousels/${id}`)
